<!--{subtemplate common/header_common}-->
		<script type="text/javascript" src="{$_G[siteurl]}static/js/portal.js"></script>
	<!--{if $_G['basescript'] != 'index' && $_GET['diy'] == 'yes' && $_G[group][allowdiy] && !empty($_G['style']['tplfile'])}-->
		<script type="text/javascript" src="{$_G[siteurl]}static/js/portal.js"></script>
	<!--{/if}-->
	<!--{if $_GET[diy] == 'yes' && $_G[group][allowdiy] && !empty($_G['style']['tplfile'])}-->
	<link rel="stylesheet" type="text/css" href="data/cache/style_{STYLEID}_css_diy.css" />
	<!--{/if}-->
</head>
<body id="bd" class="bd">
	<!--{if ($_G[group][allowdiy] && !empty($_G['style']['tplfile']))}-->
	<a id="diy-tg" href="javascript:openDiy();" title="{lang Open the DIY panel}"><img src="{STATICURL}image/diy/panel-toggle.png" alt="DIY" /></a>
	<!--{/if}-->
	<!--{if $_GET['diy'] == 'yes' && $_G[group][allowdiy] && !empty($_G['style']['tplfile'])}-->
		<!--{template common/header_diy}-->
	<!--{/if}-->
	<div id="append_parent"></div><div id="ajaxwaitid"></div>


<div id="ja-wrapper">
	<div id="ja-header" class="wrap ">		
		<div class="main clearfix" style="position: relative;margin-top: 27px;">

	</div>
</div>		


<div id="ja-topmegamenu" class="wrap ">		
	<div class="main clearfix" style="position: relative;">
		<div id="ja-topnav" class="clearfix">
			<div class="ja-megamenu clearfix" id="ja-topmega">
				<ul class="level0">
					<li class="mega nav-blog{if $_G['gp_option']=='member'} active{/if}">
						<a href="index.php?option=member&task=profile" id="qmenu" title="User Center" onmouseover="showMenu(this.id)" class="mega nav-blog{if $_G['gp_option']=='member'} active{/if}"><span class="menu-title">用户中心</span></a>
					</li>
				</ul>
			</div>
		</div>
	</div>
</div>


<div id="ja-mainnav" class="wrap ">		
<div class="main clearfix" style="position: relative;">
<ul id="ja-cssmenu" class="clearfix"> 


{eval $mid = 0;}
<!--{loop $_G['setting']['navs'] $nav}-->
	<!--{if $nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))}-->
{if !$nav[params]}
	<li class="home menu-item{$mid}{if $_G['gp_option']=='portal' && $_G['gp_task'] == 'index'} active {else} {/if}first"><a href="{$_G[siteurl]}" class="first{if $_G['gp_option']=='portal' && $_G['gp_task'] == 'index'} active {else} {/if}home" title="{$nav[name]}"><span class="menu-title">{$nav[name]}</span></a>
{elseif $nav[type]==4}
<li class="menu-item{$mid} {if $_G['topcatid']==$nav[catid]||$_G['curcatid']==$nav[catid]} active{/if}{if $nav[subnavs]} havechild{/if}"><a href="{$nav[url]}" class="{if $_G['topcatid']==$nav[catid]||$_G['curcatid']==$nav[catid]} active{/if}{if $nav[subnavs]} havechild{/if}" title="{$nav[name]}"><span class="menu-title">$nav[name]</span></a>
{else}
{eval $css = 'active';}
{loop $nav[params] $k $v}
	{if $_G['gp_'.$k]!=$v}
		{eval $css = '';}
	{/if}
{/loop}
<li class="menu-item{$mid} $css{if $nav[subnavs]} havechild{/if}"><a href="{$nav[url]}" class="$css{if $nav[subnavs]} havechild{/if}" title="{$nav[name]}"><span class="menu-title">$nav[name]</span></a>
{/if}
{if $nav[subnavs]}
<ul>
{loop $nav[subnavs] $subnav}
{eval $css = 'active';}
{if $subnav[type]==4}
<li class="menu-item{$mid} {if $_G['topcatid']==$subnav[catid]||$_G['curcatid']==$subnav[catid]} active{/if}"><a href="{$subnav[url]}" class="{if $_G['topcatid']==$subnav[catid]||$_G['curcatid']==$subnav[catid]} active{/if}" title="{$subnav[name]}"><span class="menu-title">$subnav[name]</span></a>
{else}
{loop $subnav[params] $k $v}
	{if $_G['gp_'.$k]!=$v}
		{eval $css = '';}
	{/if}
{/loop}
<li class="menu-item{$mid} $css{if $subnav[subnavs]} havechild{/if}"><a href="{$subnav[url]}" class="$css{if $subnav[subnavs]} havechild{/if}" title="{$subnav[name]}"><span class="menu-title">$nav[name]</span></a>
{/if}
{/loop}
</ul>
{/if}
</li>
{eval $mid++;}
	<!--{/if}-->
<!--{/loop}-->

<li class="menu-item{$mid}" style="height: 31px;"></li>
</ul>
</div>
</div>
								<div id="ja-topbar" class="wrap ">		
				
			
					<div class="main clearfix" style="position: relative;">
		
				

<p class="ja-day clearfix">
	<span class="day">{$_G['timenow']['week']}</span><span class="date">{$_G['timenow']['day']}</span><span class="month">{$_G['timenow']['month']}</span><span class="year">{$_G['timenow']['year']}</span>
</p>
<p class="ja-updatetime"><span>{lang Last update}</span><em>{$_G[timenow][time]} GMT{$_G[timenow][offset]}</em></p>

		
		<div id="ja-search">
		
<form action="#" method="post" class="search">
	<label for="mod_search_searchword">
		search	</label>
	<input name="searchword" id="mod_search_searchword" class="inputbox" type="text" size="20" value=""><input type="submit" value="Search" class="button">	<input type="hidden" name="option" value="com_search">
	<input type="hidden" name="task" value="search">
</form>

	</div>		 
		
				
					</div>
		
			
				</div>		


<div id="qmenu_menu" style="display: none; zoom: 1; width: auto;">
					<!--{if $_G['uid']}-->
					<div class="p_pop">
							<li><a href="index.php?option=member&task=notice" id="myprompt"{if $_G[member][newprompt]>0} class="new"{/if}>{lang Notice}<!--{if $_G[member][newprompt]}-->($_G[member][newprompt])<!--{/if}--></a></li>
							<li><a href="index.php?option=member&task=update">{lang Profile}</a></li>
							<li><a href="index.php?option=member&task=credit">{lang Credits}:{$_G[member][credits]}</a></li>
							<li> <a href="index.php?option=member&task=usergroup">$_G[group][grouptitle]</a></li>
							<li><a href="index.php?option=member&task=profile&op=password">{lang Password security}</a></li>
						<!--{if $_G['group']['allowmanagearticle'] || $_G['group']['allowdiy'] || $_G['group']['allowauthorizedblock'] || $_G['group']['allowauthorizedarticle']}-->
							<li><a href="index.php?option=portalcp">{lang Portal management}</a></li>
						<!--{/if}-->
						<!--{if $_G['uid'] && $_G['group']['radminid'] == 1}-->
							<li><a href="admin.php" target="_blank">{lang Admincp}</a></li>
						<!--{/if}-->
							<li><a href="index.php?option=member&task=logout&formhash={FORMHASH}">{lang Logout}</a></li>
						<!--{if !empty($_G['style']['extstyle'])}-->
							<div class="sslct cl">
								<!--{if !$_G[style][defaultextstyle]}--><span class="sslct_btn" onclick="extstyle('')" title="{lang Default}"><i>&nbsp;</i></span><!--{/if}-->
								<!--{loop $_G['style']['extstyle'] $extstyle}-->
									<span class="sslct_btn" onclick="extstyle('$extstyle[0]')" title="$extstyle[1]"><i style='background:$extstyle[2]'>&nbsp;</i></span>
								<!--{/loop}-->
							</div>
						<!--{/if}-->
						</div>
					<!--{else}-->
						<!--{template member/login_simple}-->
					<!--{/if}-->
				</div>

{if $_G['gp_option']=='portal' && $_G['gp_task'] == 'index'}
<div id="ja-topsl1" class="wrap ">		
	<div class="main clearfix">
{else}
<div id="ja-container" class="wrap ja-r2">
	<div class="{if $_G['gp_task']!='usergroup'}main {/if}clearfix">
{/if}
